toToolkit

open fun toToolkit(bitmap: Bitmap): Image

Creates and returns an instance of Image obtained from the given bitmap. The image will have the same width and height as the bitmap.

Parameters

bitmap

the bitmap used to obtain Image

Throws

when the given bitmap size is empty